After updating a texture on a mod and exporting it into LFS for offline testing, I have to either restart LFS or switch between low res / high res textures in Options - Graphics for the new textures to appear.
It would be useful to have a dedicated command or a button in LFS to reload all textures.
🚧 This project is still under development. Any API may change as needed. Bugs and incomplete features are to be expected.
React Node InSim
Introducing React Node InSim, A React renderer for InSim buttons, based on Node.js with TypeScript support. It also provides layout components for easier button positioning, hooks for handling incoming InSim packets and tracking server connections & players.
Installation
npm install react@18 node-insim react-node-insim
or if you use Yarn:
yarn add react@18 node-insim react-node-insim
Basic Usage
To connect to an LFS server from your Node.js application, enter its hostname, a port and a short name for your application into the createRoot function, which will create a React root for you. Then you call root.render() just like you would with React DOM.
Minimal working example app
A Node.js app written in TypeScript, which displays a single button on local LFS.
Thanks for creating the work in progress thread. Can you please upload the images as attachments to your first post? If you use a 3rd party image hosting service, it can be deleted or go down at some point in the future.
I've simplified the example apps now - you can check them out in the examples folder. They're also listed in the README. The simplest example is "InSim connection".